import 'package:dutask/widgets/LUMAIconTileButton.dart';
import 'package:flutter/widgets.dart';
import 'package:dutask/providers/LUMAValidatorDefault.dart';
import 'package:dutask/themes/LUMASharableDebug.dart';
import 'package:dutask/screens/LUMAMonospaceUtils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

void main() {
  runApp(
    const ProviderScope(
      child: LUMAExport(),
    ),
  );
}

class LUMAExport extends ConsumerWidget {
  const LUMAExport({super.key});

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    bool instance = DateTime.now().millisecondsSinceEpoch > 1728828000100;
    final themeMode = ref.watch(themeModeProvider);
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: defaultLightTheme,
      darkTheme: defaultDarkTheme,
      themeMode: themeMode,
      home: instance ? const LUMAGeneratedActivity() : LUMAIconHighight(),
    );
  }
}
